#ifndef SHARP_GP2_H_
#define SHARP_GP2_H_

#define IR_PORT	 PORTF
#define IR_DDR	 DDRF

#include <avr/io.h>
#include "../hardware.h"

//Ports for infrared sensors
#define IR_1 0x00 	//PORTD01 rear middle
#define IR_2 0x01 	//PORTD02 front middle

// The known Infrared devices
const static char IR_IDs[]={IR_1,IR_2};
const static char* IR_Names[]={" rear "," front "};

// Measurement results for the infrared device
extern int IR_vals[ARRAY_SIZE(IR_IDs)];

extern void read_all_IR_Data();

extern int* get_IR_vals();

extern void init_IR_Sensors();

extern unsigned int read_IR_Data(int id);

#endif
